<table width='100%' cellspacing='0' cellpadding='0' border='0'>
  <tr>
    <{foreach item=photo key=count from=$block.photo name=photoloop}>
      <td align='center' style='margin:0px;padding:5px 0px;'>
        <a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&amp;cid=<{$photo.cid}>"><img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" <{$photo.img_attribs}> alt="<{$photo.title}>" title="<{$photo.title}>" /></a>
      </td>
      <{if $count is div by $block.cols && ! $smarty.foreach.photoloop.last
}>
        </tr>
        <tr>
      <{/if}>
    <{/foreach}>
  </tr>
</table>
